package MyConnectionPool;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class MysqlUtils {
    private static  final String URL="jdbc:mysql://localhost:3306/test";
    static {
        try {
            Class.forName("com.mysql.jdbc.Driver");
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
    public static Connection createConn() throws SQLException {
        return DriverManager.getConnection(URL,"userName","password");
    }
}
